package org.epidroid.epidroid.news.engine;

import java.io.IOException;
import java.util.ArrayList;

public interface INewsService {
	public void addListener(INewsServiceListener listener);

	public void removeListener(INewsServiceListener listener);

	public ArrayList<Group> updateListGroups();
	
	public ArrayList<Group> getListGroups();

	public ArrayList<Topic> getListTopics(Group group);

	public ArrayList<Topic> updateListTopics(Group group);

	public Topic getTopic(String topicId, Group group);

	public Group getGroupFromName(String group);

	public String retrieveBody(NewsArticle a) throws IOException;

	public ArrayList<Group> getFavsGroups();

	public String getArticleEncoding(NewsArticle a);
	
	public Boolean connect();

}
